package com.mashibing.serviceorder.remote;

import com.mashibing.internalcommon.dto.Car;
import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.response.OrderDriverResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 史慕尧
 */


    @FeignClient("service-driver-user")
    public interface ServiceDriverUserClient {

        @GetMapping("/city-driver/is-available-driver")
        public ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode);

        @GetMapping("/get-available-driver/{carId}")
        public ResponseResult<OrderDriverResponse> getAvailableDriver(@PathVariable("carId") String carId);

        @GetMapping("/car")
        public ResponseResult<Car> getCarById(@RequestParam  String carId);
    }

